.class public Lcom/a0soft/gphone/app2sd/main/d;
.super Ljava/lang/Object;
.source "AppIcon.java"

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Landroid/view/View$OnCreateContextMenuListener;


# static fields
.field private static final g:Ljava/lang/String;


# instance fields
.field a:Lcom/a0soft/gphone/app2sd/main/j;

.field b:Lcom/a0soft/gphone/app2sd/main/AppIconWnd;

.field c:Z

.field d:Landroid/view/LayoutInflater;

.field e:Landroid/view/MenuInflater;

.field f:Landroid/graphics/drawable/Drawable;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 46
    const-class v0, Lcom/a0soft/gphone/app2sd/main/d;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/a0soft/gphone/app2sd/main/d;->g:Ljava/lang/String;

    return-void
.end method

.method private constructor <init>()V
    .locals 0

    .prologue
    .line 51
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 52
    return-void
.end method

.method constructor <init>(Lcom/a0soft/gphone/app2sd/main/AppIconWnd;Z)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 55
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 56
    iput-object p1, p0, Lcom/a0soft/gphone/app2sd/main/d;->b:Lcom/a0soft/gphone/app2sd/main/AppIconWnd;

    .line 57
    iput-boolean p2, p0, Lcom/a0soft/gphone/app2sd/main/d;->c:Z

    .line 59
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/d;->b:Lcom/a0soft/gphone/app2sd/main/AppIconWnd;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    iput-object v0, p0, Lcom/a0soft/gphone/app2sd/main/d;->d:Landroid/view/LayoutInflater;

    .line 60
    invoke-virtual {p1}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->getMenuInflater()Landroid/view/MenuInflater;

    move-result-object v0

    iput-object v0, p0, Lcom/a0soft/gphone/app2sd/main/d;->e:Landroid/view/MenuInflater;

    .line 62
    invoke-virtual {p1}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    .line 63
    const v1, 0x7f020023

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    iput-object v0, p0, Lcom/a0soft/gphone/app2sd/main/d;->f:Landroid/graphics/drawable/Drawable;

    .line 64
    return-void
.end method

.method public static a(Landroid/app/Activity;Lcom/a0soft/gphone/app2sd/a/g;Z)Z
    .locals 2
    .parameter
    .parameter
    .parameter

    .prologue
    .line 295
    invoke-virtual {p1}, Lcom/a0soft/gphone/app2sd/a/g;->f()Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x1

    invoke-static {p0, v0, v1, p2}, Lcom/a0soft/gphone/app2sd/main/d;->a(Landroid/app/Activity;Ljava/lang/String;ZZ)Z

    move-result v0

    return v0
.end method

.method public static a(Landroid/app/Activity;Ljava/lang/String;ZZ)Z
    .locals 6
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v5, 0x0

    const/4 v4, 0x1

    .line 226
    if-eqz p3, :cond_0

    .line 227
    invoke-static {p0}, Lcom/a0soft/gphone/app2sd/main/PrefWnd;->i(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 228
    const v0, 0x7f05001b

    invoke-virtual {p0, v0}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0}, Lcom/a0soft/gphone/app2sd/main/PersistentToast;->a(Landroid/content/Context;Ljava/lang/String;)V

    .line 231
    :cond_0
    invoke-virtual {p0}, Landroid/app/Activity;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v0

    .line 236
    :try_start_0
    new-instance v1, Landroid/content/Intent;

    const-string v2, "android.intent.action.VIEW"

    invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 237
    const-string v2, "com.android.settings"

    const-string v3, "com.android.settings.InstalledAppDetails"

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 239
    const-string v2, "pkg"

    invoke-virtual {v1, v2, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 240
    const/4 v2, 0x0

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->resolveActivityInfo(Landroid/content/pm/PackageManager;I)Landroid/content/pm/ActivityInfo;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 241
    const/16 v0, 0x64

    invoke-virtual {p0, v1, v0}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V

    move v0, v4

    .line 289
    :goto_0
    return v0

    .line 245
    :cond_1
    new-instance v0, Ljava/lang/Exception;

    invoke-direct {v0}, Ljava/lang/Exception;-><init>()V

    throw v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    move-exception v0

    .line 255
    :try_start_1
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.settings.APPLICATION_DETAILS_SETTINGS"

    const-string v2, "package"

    const/4 v3, 0x0

    invoke-static {v2, p1, v3}, Landroid/net/Uri;->fromParts(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 257
    const/16 v1, 0x64

    invoke-virtual {p0, v0, v1}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    move v0, v4

    .line 258
    goto :goto_0

    .line 287
    :catch_1
    move-exception v0

    if-eqz p2, :cond_2

    .line 288
    const v0, 0x7f05000e

    invoke-static {p0, v0, v4}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    :cond_2
    move v0, v5

    .line 289
    goto :goto_0
.end method


# virtual methods
.method final a(Landroid/view/ViewGroup;)Landroid/view/ViewGroup;
    .locals 3
    .parameter

    .prologue
    .line 75
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/d;->d:Landroid/view/LayoutInflater;

    const v1, 0x7f030002

    const/4 v2, 0x0

    invoke-virtual {v0, v1, p1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup;

    .line 77
    invoke-virtual {v0, p0}, Landroid/view/ViewGroup;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 78
    invoke-virtual {v0, p0}, Landroid/view/ViewGroup;->setOnCreateContextMenuListener(Landroid/view/View$OnCreateContextMenuListener;)V

    .line 79
    new-instance v1, Lcom/a0soft/gphone/app2sd/main/k;

    invoke-direct {v1, p0}, Lcom/a0soft/gphone/app2sd/main/k;-><init>(Lcom/a0soft/gphone/app2sd/main/d;)V

    .line 83
    const v2, 0x7f0a0004

    invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object p0

    check-cast p0, Landroid/widget/TextView;

    iput-object p0, v1, Lcom/a0soft/gphone/app2sd/main/k;->a:Landroid/widget/TextView;

    .line 84
    const v2, 0x7f0a0005

    invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object p0

    check-cast p0, Landroid/widget/TextView;

    iput-object p0, v1, Lcom/a0soft/gphone/app2sd/main/k;->b:Landroid/widget/TextView;

    .line 85
    const v2, 0x7f0a0006

    invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object p0

    check-cast p0, Landroid/widget/ImageView;

    iput-object p0, v1, Lcom/a0soft/gphone/app2sd/main/k;->c:Landroid/widget/ImageView;

    .line 86
    const v2, 0x7f0a0007

    invoke-virtual {v0, v2}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object p0

    check-cast p0, Landroid/widget/ImageView;

    iput-object p0, v1, Lcom/a0soft/gphone/app2sd/main/k;->d:Landroid/widget/ImageView;

    .line 87
    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setTag(Ljava/lang/Object;)V

    .line 89
    return-object v0
.end method

.method final a(Lcom/a0soft/gphone/app2sd/a/g;Landroid/view/ViewGroup;I)V
    .locals 7
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v6, 0x4

    const/4 v5, 0x0

    .line 101
    invoke-virtual {p2}, Landroid/view/ViewGroup;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/a0soft/gphone/app2sd/main/k;

    .line 102
    if-nez v0, :cond_1

    .line 155
    :cond_0
    :goto_0
    return-void

    .line 107
    :cond_1
    iput-object p1, v0, Lcom/a0soft/gphone/app2sd/main/k;->e:Lcom/a0soft/gphone/app2sd/a/g;

    .line 110
    iget-object v1, v0, Lcom/a0soft/gphone/app2sd/main/k;->a:Landroid/widget/TextView;

    .line 111
    if-eqz p1, :cond_3

    invoke-virtual {p1}, Lcom/a0soft/gphone/app2sd/a/g;->a()Ljava/lang/String;

    move-result-object v2

    :goto_1
    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 112
    invoke-virtual {v1, v5}, Landroid/widget/TextView;->setVisibility(I)V

    .line 114
    iget-object v1, v0, Lcom/a0soft/gphone/app2sd/main/k;->b:Landroid/widget/TextView;

    .line 115
    if-nez p1, :cond_4

    .line 116
    const-string v2, "0"

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 135
    :goto_2
    if-eqz p1, :cond_5

    invoke-virtual {p1}, Lcom/a0soft/gphone/app2sd/a/g;->g()Z

    move-result v1

    if-eqz v1, :cond_5

    .line 136
    iget-object v1, v0, Lcom/a0soft/gphone/app2sd/main/k;->c:Landroid/widget/ImageView;

    invoke-virtual {p1}, Lcom/a0soft/gphone/app2sd/a/g;->h()Landroid/graphics/drawable/Drawable;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 147
    :cond_2
    :goto_3
    iget-boolean v1, p0, Lcom/a0soft/gphone/app2sd/main/d;->c:Z

    if-eqz v1, :cond_0

    .line 148
    if-eqz p1, :cond_7

    .line 149
    iget-object v0, v0, Lcom/a0soft/gphone/app2sd/main/k;->d:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/a0soft/gphone/app2sd/main/d;->b:Lcom/a0soft/gphone/app2sd/main/AppIconWnd;

    invoke-virtual {p1}, Lcom/a0soft/gphone/app2sd/a/g;->f()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/a0soft/gphone/app2sd/main/PrefWnd;->a(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_6

    move v1, v5

    :goto_4
    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_0

    .line 111
    :cond_3
    const-string v2, "null"

    goto :goto_1

    .line 119
    :cond_4
    packed-switch p3, :pswitch_data_0

    .line 130
    invoke-virtual {p1}, Lcom/a0soft/gphone/app2sd/a/g;->e()J

    move-result-wide v2

    invoke-static {v2, v3}, Lcom/a0soft/gphone/a/b;->a(J)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_2

    .line 121
    :pswitch_0
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "d:"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {p1}, Lcom/a0soft/gphone/app2sd/a/g;->c()J

    move-result-wide v3

    invoke-static {v3, v4}, Lcom/a0soft/gphone/a/b;->a(J)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_2

    .line 124
    :pswitch_1
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "c:"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {p1}, Lcom/a0soft/gphone/app2sd/a/g;->b()J

    move-result-wide v3

    invoke-static {v3, v4}, Lcom/a0soft/gphone/a/b;->a(J)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_2

    .line 127
    :pswitch_2
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "a:"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {p1}, Lcom/a0soft/gphone/app2sd/a/g;->d()J

    move-result-wide v3

    invoke-static {v3, v4}, Lcom/a0soft/gphone/a/b;->a(J)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_2

    .line 139
    :cond_5
    iget-object v1, v0, Lcom/a0soft/gphone/app2sd/main/k;->c:Landroid/widget/ImageView;

    iget-object v2, p0, Lcom/a0soft/gphone/app2sd/main/d;->f:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 141
    if-eqz p1, :cond_2

    .line 142
    iget-object v1, p0, Lcom/a0soft/gphone/app2sd/main/d;->d:Landroid/view/LayoutInflater;

    invoke-virtual {v1}, Landroid/view/LayoutInflater;->getContext()Landroid/content/Context;

    move-result-object v1

    new-instance v2, Lcom/a0soft/gphone/app2sd/main/i;

    invoke-direct {v2, p0, p2}, Lcom/a0soft/gphone/app2sd/main/i;-><init>(Lcom/a0soft/gphone/app2sd/main/d;Landroid/view/ViewGroup;)V

    invoke-virtual {p1, v1, v2}, Lcom/a0soft/gphone/app2sd/a/g;->a(Landroid/content/Context;Lcom/a0soft/gphone/app2sd/a/j;)V

    goto/16 :goto_3

    :cond_6
    move v1, v6

    .line 149
    goto/16 :goto_4

    .line 153
    :cond_7
    iget-object v0, v0, Lcom/a0soft/gphone/app2sd/main/k;->d:Landroid/widget/ImageView;

    invoke-virtual {v0, v6}, Landroid/widget/ImageView;->setVisibility(I)V

    goto/16 :goto_0

    .line 119
    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method

.method final a(Lcom/a0soft/gphone/app2sd/main/j;)V
    .locals 0
    .parameter

    .prologue
    .line 69
    iput-object p1, p0, Lcom/a0soft/gphone/app2sd/main/d;->a:Lcom/a0soft/gphone/app2sd/main/j;

    .line 70
    return-void
.end method

.method public final a(Lcom/a0soft/gphone/app2sd/a/g;)Z
    .locals 4
    .parameter

    .prologue
    .line 206
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.VIEW"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "market://details?id="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {p1}, Lcom/a0soft/gphone/app2sd/a/g;->f()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 209
    :try_start_0
    iget-object v1, p0, Lcom/a0soft/gphone/app2sd/main/d;->b:Lcom/a0soft/gphone/app2sd/main/AppIconWnd;

    invoke-virtual {v1, v0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->startActivity(Landroid/content/Intent;)V
    :try_end_0
    .catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    .line 210
    const/4 v0, 0x1

    .line 220
    :goto_0
    return v0

    .line 213
    :catch_0
    move-exception v0

    new-instance v0, Landroid/app/AlertDialog$Builder;

    iget-object v1, p0, Lcom/a0soft/gphone/app2sd/main/d;->b:Lcom/a0soft/gphone/app2sd/main/AppIconWnd;

    invoke-direct {v0, v1}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v1, 0x1080027

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v1, 0x7f05004e

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v1, 0x7f05004f

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setMessage(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v1, 0x104000a

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    .line 220
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final b(Lcom/a0soft/gphone/app2sd/a/g;)Z
    .locals 3
    .parameter

    .prologue
    const/4 v2, 0x1

    .line 301
    invoke-virtual {p1}, Lcom/a0soft/gphone/app2sd/a/g;->f()Ljava/lang/String;

    move-result-object v0

    .line 304
    :try_start_0
    iget-object v1, p0, Lcom/a0soft/gphone/app2sd/main/d;->b:Lcom/a0soft/gphone/app2sd/main/AppIconWnd;

    invoke-virtual {v1}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/content/pm/PackageManager;->getLaunchIntentForPackage(Ljava/lang/String;)Landroid/content/Intent;

    move-result-object v0

    .line 305
    if-eqz v0, :cond_0

    .line 306
    iget-object v1, p0, Lcom/a0soft/gphone/app2sd/main/d;->b:Lcom/a0soft/gphone/app2sd/main/AppIconWnd;

    invoke-virtual {v1, v0}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->startActivity(Landroid/content/Intent;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move v0, v2

    .line 314
    :goto_0
    return v0

    :catch_0
    move-exception v0

    .line 313
    :cond_0
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/d;->b:Lcom/a0soft/gphone/app2sd/main/AppIconWnd;

    const v1, 0x7f05000d

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    .line 314
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 2
    .parameter

    .prologue
    .line 189
    if-nez p1, :cond_0

    .line 201
    :goto_0
    return-void

    .line 192
    :cond_0
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/d;->a:Lcom/a0soft/gphone/app2sd/main/j;

    if-eqz v0, :cond_1

    .line 194
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/a0soft/gphone/app2sd/main/k;

    iget-object v0, v0, Lcom/a0soft/gphone/app2sd/main/k;->e:Lcom/a0soft/gphone/app2sd/a/g;

    .line 195
    if-eqz v0, :cond_1

    .line 196
    iget-object v1, p0, Lcom/a0soft/gphone/app2sd/main/d;->a:Lcom/a0soft/gphone/app2sd/main/j;

    invoke-interface {v1, v0}, Lcom/a0soft/gphone/app2sd/main/j;->a(Lcom/a0soft/gphone/app2sd/a/g;)Z

    goto :goto_0

    .line 200
    :cond_1
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/d;->b:Lcom/a0soft/gphone/app2sd/main/AppIconWnd;

    invoke-virtual {v0, p1}, Lcom/a0soft/gphone/app2sd/main/AppIconWnd;->openContextMenu(Landroid/view/View;)V

    goto :goto_0
.end method

.method public onCreateContextMenu(Landroid/view/ContextMenu;Landroid/view/View;Landroid/view/ContextMenu$ContextMenuInfo;)V
    .locals 4
    .parameter
    .parameter
    .parameter

    .prologue
    .line 321
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/a0soft/gphone/app2sd/main/k;

    .line 322
    if-nez v0, :cond_1

    .line 391
    :cond_0
    :goto_0
    return-void

    .line 323
    :cond_1
    iget-object v0, v0, Lcom/a0soft/gphone/app2sd/main/k;->e:Lcom/a0soft/gphone/app2sd/a/g;

    .line 324
    if-eqz v0, :cond_0

    .line 326
    iget-object v1, p0, Lcom/a0soft/gphone/app2sd/main/d;->e:Landroid/view/MenuInflater;

    const/high16 v2, 0x7f09

    invoke-virtual {v1, v2, p1}, Landroid/view/MenuInflater;->inflate(ILandroid/view/Menu;)V

    .line 327
    invoke-virtual {v0}, Lcom/a0soft/gphone/app2sd/a/g;->h()Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-interface {p1, v1}, Landroid/view/ContextMenu;->setHeaderIcon(Landroid/graphics/drawable/Drawable;)Landroid/view/ContextMenu;

    .line 328
    invoke-virtual {v0}, Lcom/a0soft/gphone/app2sd/a/g;->a()Ljava/lang/String;

    move-result-object v1

    invoke-interface {p1, v1}, Landroid/view/ContextMenu;->setHeaderTitle(Ljava/lang/CharSequence;)Landroid/view/ContextMenu;

    .line 334
    const v1, 0x7f0a0010

    invoke-interface {p1, v1}, Landroid/view/ContextMenu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v1

    .line 335
    new-instance v2, Lcom/a0soft/gphone/app2sd/main/e;

    invoke-direct {v2, p0, v0}, Lcom/a0soft/gphone/app2sd/main/e;-><init>(Lcom/a0soft/gphone/app2sd/main/d;Lcom/a0soft/gphone/app2sd/a/g;)V

    invoke-interface {v1, v2}, Landroid/view/MenuItem;->setOnMenuItemClickListener(Landroid/view/MenuItem$OnMenuItemClickListener;)Landroid/view/MenuItem;

    .line 345
    const v1, 0x7f0a0011

    invoke-interface {p1, v1}, Landroid/view/ContextMenu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v1

    .line 346
    new-instance v2, Lcom/a0soft/gphone/app2sd/main/f;

    invoke-direct {v2, p0, v0}, Lcom/a0soft/gphone/app2sd/main/f;-><init>(Lcom/a0soft/gphone/app2sd/main/d;Lcom/a0soft/gphone/app2sd/a/g;)V

    invoke-interface {v1, v2}, Landroid/view/MenuItem;->setOnMenuItemClickListener(Landroid/view/MenuItem$OnMenuItemClickListener;)Landroid/view/MenuItem;

    .line 356
    const v1, 0x7f0a0012

    invoke-interface {p1, v1}, Landroid/view/ContextMenu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v1

    .line 357
    new-instance v2, Lcom/a0soft/gphone/app2sd/main/g;

    invoke-direct {v2, p0, v0}, Lcom/a0soft/gphone/app2sd/main/g;-><init>(Lcom/a0soft/gphone/app2sd/main/d;Lcom/a0soft/gphone/app2sd/a/g;)V

    invoke-interface {v1, v2}, Landroid/view/MenuItem;->setOnMenuItemClickListener(Landroid/view/MenuItem$OnMenuItemClickListener;)Landroid/view/MenuItem;

    .line 367
    const v1, 0x7f0a0013

    invoke-interface {p1, v1}, Landroid/view/ContextMenu;->findItem(I)Landroid/view/MenuItem;

    move-result-object v1

    .line 368
    iget-boolean v2, p0, Lcom/a0soft/gphone/app2sd/main/d;->c:Z

    if-eqz v2, :cond_3

    .line 369
    iget-object v2, p0, Lcom/a0soft/gphone/app2sd/main/d;->b:Lcom/a0soft/gphone/app2sd/main/AppIconWnd;

    invoke-virtual {v0}, Lcom/a0soft/gphone/app2sd/a/g;->f()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Lcom/a0soft/gphone/app2sd/main/PrefWnd;->a(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_2

    .line 370
    const v2, 0x7f050028

    invoke-interface {v1, v2}, Landroid/view/MenuItem;->setTitle(I)Landroid/view/MenuItem;

    .line 374
    :goto_1
    new-instance v2, Lcom/a0soft/gphone/app2sd/main/h;

    invoke-direct {v2, p0, v0}, Lcom/a0soft/gphone/app2sd/main/h;-><init>(Lcom/a0soft/gphone/app2sd/main/d;Lcom/a0soft/gphone/app2sd/a/g;)V

    invoke-interface {v1, v2}, Landroid/view/MenuItem;->setOnMenuItemClickListener(Landroid/view/MenuItem$OnMenuItemClickListener;)Landroid/view/MenuItem;

    goto :goto_0

    .line 372
    :cond_2
    const v2, 0x7f050027

    invoke-interface {v1, v2}, Landroid/view/MenuItem;->setTitle(I)Landroid/view/MenuItem;

    goto :goto_1

    .line 389
    :cond_3
    const/4 v0, 0x0

    invoke-interface {v1, v0}, Landroid/view/MenuItem;->setVisible(Z)Landroid/view/MenuItem;

    goto :goto_0
.end method
